<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        a{
            text-decoration: none;
        }
        li{
            list-style: none;
        }
        .box{
            width: 1200px;
            height: 460px;
            overflow: hidden;
            position: relative;
            /* border: 1px solid red; */
            margin: 50px auto;
        }
        .imgbox{
            width: 10000px;
            height: 460px;
            position: absolute;
            top: 0;
            left: 0;
        }
        .imgbox ul{
            overflow: hidden;
        }
        .imgbox ul li{
            list-style: none;
            float: left;
        }
        .leftbtn{
            width: 30px;
            height: 40px;
            background-color: #ccc;
            font-size: 30px;
            text-align: center;
            line-height: 40px;
            color: white;
            position: absolute;
            top: 50%;
            left: 20%;
            margin-top: -20px;
            cursor: pointer;
            z-index: 10;
        }
        .rightbtn{
            width: 30px;
            height: 40px;
            background-color: #ccc;
            font-size: 30px;
            text-align: center;
            line-height: 40px;
            color: white;
            position: absolute;
            top: 50%;
            right: 0;
            margin-top: -20px;
            cursor: pointer;
        }
        .circlebtn{
            width: 80px;
            height: 12px;
            position: absolute;
            bottom: 25px;
            right: 50px;
        }
        .circlebtn span{
            width: 8px;
            height: 8px;
            border: 2px solid white;
            border-radius: 50%;
            background-color: black;
            display: inline-block;
            margin-left: 10px;
            cursor: pointer;
        }
        .circlebtn span.current{
            background-color: white;
        }

        .xiabox_zong{
            width: 80%;
            height: 100%;
            /* background-color: #cccccc; */
            position: absolute;
            top: 0;
            left: 0;
        }
        .xiabox{
            width: 25%;
            height: 100%;
            /* background-color: #cccccc; */
             background-color:rgba(0, 0, 0, 0.3)
        }
        .xiabox>li{
            width: 100%;
            height: 60px;
           
        }
        .xiabox>li>ul>li{
            margin-left: 10%;
            line-height: 60px;
        }

        .xiabox>li>a{
            display: inline-block;
            width: 80%;
            height: 60px;
            line-height: 60px;
            font-size: 20px;
            color: white;
            margin-left: 10%;
            border-bottom:1px solid white;
            position: relative;
        }
        .xiabox>li>a>span{
            position: absolute;
            right: 0;
        }
        .xiaobox_ul{
            width: 730px;
            height: 460px;
            background: url(img/fe.png) no-repeat;
            position: absolute;
            top: 0;
            left:25%;
            display: none;
        }
       .xiaobox_ul>li:first-child{
        color: red;
        font-weight: bold;
       }
       .xiaobox_ul>li span {
           font-weight: bold;
       }
    </style>
    <script src="js/jquery-3.4.1.min.js"></script>
</head>
<body>
    <div class="box">
        <!-- 图片盒子 -->
        <div class="imgbox">
            <ul>
              <li><a href=""><img src="img/bg1.jpg" alt=""></a></li>
              <li><a href=""><img src="img/bg2.jpg" alt=""></a></li>
              <li><a href=""><img src="img/bg3.jpg" alt=""></a></li>
            </ul>
        </div>
        <!-- 左右按钮 -->
        <div class="leftbtn"><</div>
        <div class="rightbtn">></div>

        <div class="circlebtn">
            <span class="current"></span>
            <span></span>
            <span></span>
        </div>
        <!-- 下拉菜单 -->

      <div class="xiabox_zong">
    <ul class="xiabox">
            <li>
                <a href="#">手机、配件 <span>></span></a>
                <ul class="xiaobox_ul"> 
                    <li>手机、配件</li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                </ul>
            </li>

            <li>
                <a href="#">电脑 <span>></span></a>
                <ul class="xiaobox_ul">
                    <li>电脑</li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                </ul>
            </li>

            <li>
                <a href="#">家用电器 <span>></span></a>
                <ul class="xiaobox_ul">
                    <li>家用电器</li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                </ul>
            </li>

            <li>
                <a href="#">家具 <span>></span></a>
                <ul class="xiaobox_ul">
                    <li>家具</li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                    <li><span>手机通讯：</span><a href="#">手机</a> | <a href="">手机维修</a> | <a href="">以旧换新</a></li>
                </ul>
            </li>
    </ul>
</div> 
    </div>

    
    <script>
        $(".xiabox>li").mouseover(function(){
            $(this).css('background','rgba(0, 0, 0, 0.3)')
            $(this).children("ul").show();
        })
        $(".xiabox>li").mouseleave(function(){
            $(this).css('background','')
            $(this).children("ul").hide();
        })
    </script>
    <script src="js/lunbo.js"></script>
</body>
</html>